package com.ruoyi.odorservice.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.common.core.domain.Result;
import com.ruoyi.odorservice.entity.Industry;
import com.ruoyi.odorservice.model.vo.IndustryCraftOdorVo;
import com.ruoyi.odorservice.model.vo.IndustryListVo;

import java.util.List;

public interface IndustryService extends IService<Industry> {
    Result<List<IndustryCraftOdorVo>> getIndustryInfo(Integer craftId, Integer industryId);

    /**
     * 根据关键词模糊查询行业
     * @param key
     * @return
     */
    List<Industry> searchIndustry(String key);

    Result<IndustryListVo> industryList(Integer page, Integer limit, String industryName);

    Result<Boolean> addIndustry(Industry industry);

    Result<Boolean> updateIndustry(Industry industry);
}
